<div class="actions">
    <?php
    echo CHtml::link(ProductModule::t('Create a new product'), array('product/create'), array('class' => 'btn btn-small btn-success'));
    ?>
</div>

<?php
$this->renderPartial('_searchForm', array('model' => new SearchForm()));

$this->widget('bootstrap.widgets.TbGridView', array(
    'dataProvider' => $dataProvider,
    'type' => 'striped bordered condensed',
    'columns' => array(
        array(
            'name' => 'product_id',
            'value' => '$data->product_id',
            'type' => 'number'
        ),
        array(
            'name'  => 'title', 
            'value' => 'CHtml::link($data->title, Yii::app()->createUrl("product/item/list",array("product_id"=>$data->product_id)))',
            'type'  => 'raw'
        ),
        array('name' => 'category_id', 'value' => '$data->category?$data->category->title:"--"'),
        array('name' => 'brand', 'value' => '$data->brand'),
        array('name' => 'description', 'value' => '!empty($data->description)?$data->description:"--"'),
        array(// display a column with "view", "update" and "delete" buttons
            'class' => 'CButtonColumn',
        ),
    ),
));